home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / 000318_blitz-list-request_Thu May 19 03:39:20 1994.msg < prev    next >
Internet Message Format  |  1994-09-20  |  3KB

  1. Received: from peladon.rmit.EDU.AU (peladon.rmit.EDU.AU [131.170.1.1]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id DAA15558 for <blitz-list@helsinki.fi>; Thu, 19 May 1994 03:38:47 +0300
  2. Received: from minyos.xx.rmit.EDU.AU by peladon.rmit.EDU.AU with SMTP id AA23818
  3.   (5.65c/IDA-1.4.4 for <blitz-list@helsinki.fi>); Thu, 19 May 1994 10:38:35 +1000
  4. Received: by minyos.xx.rmit.EDU.AU 
  5. From: s924723@minyos.xx.rmit.EDU.AU (Son H. Le)
  6. Message-Id: <9405190038.7072@minyos.xx.rmit.EDU.AU>
  7. Subject: Re: libs
  8. To: blitz-list@helsinki.fi (blitz-list)
  9. Date: Thu, 19 May 1994 10:38:34 +1000 (EST)
  10. In-Reply-To: <22F99B02B95@ms1.hsbos.nl> from "Jurgen Valks" at May 18, 94 04:07:37 pm
  11. X-Mailer: ELM [version 2.4 PL23]
  12. Mime-Version: 1.0
  13. Content-Type: text/plain; charset=US-ASCII
  14. Content-Transfer-Encoding: 7bit
  15. Content-Length: 2028      
  16. X-Status: 
  17. Status: RO
  18.  
  19.  
  20. > > It depends on what kind of libs you're trying to add to Blitz2. Is it one
  21. > > you're going to write, eg. ElmoreLib or converting an existing amiga library
  22. > > (eg. triton.library). 
  23.  
  24. > > If the latter than use fdconv on any *.fd files you
  25. > > find with the library and then use MakeDefLibs.
  26.  
  27. > Please explain (with a example perhaps?)
  28.  
  29. Well, let's take the triton.library example which I've converted myself.
  30. In the triton10.lha archive, in the Programmer/FD directory there is a
  31. triton_lib.fd file. In this file is the relative offset of the routines in
  32. the library. To use the library, you need to convert this to an *.library1
  33. Blitz lib file. This is automatically done by the supplied program fdconv.
  34.  
  35. So you install the library in your LIBS: directory, run 'fdconv
  36. triton.library' and when prompt for a libnum, supply one that is unused
  37. (check in libnum.bb). FDConv will automatically write a file (in this case
  38. 'triton.library1' - if the library is big enough a second 'triton.library2')
  39. to your blitzlibs:amigalibs directory.
  40.  
  41. Now you can do a RELOAD ALL LIBS (which makes blitz2 scan all your
  42. blitzlibs: directories and load the libs) or make a permanent quicker file
  43. with MakeDefLibs. You should be about to call library commands now (with
  44. trailing '_' as usual) and the command will be tokenised.
  45.  
  46. All you need to do is convert the Programmer/include/libraries/triton.h
  47. header program and you can fully use the library with is constants and
  48. structures. There's a program on the examples disk, converth.bb(?) that
  49. helps you convert the header file to a blitz2 macro file, with which you
  50. need to convert to a *.res or include with your program.
  51.  
  52. Please note, not all libraries can be converted to work with blitz2. One
  53. such example is ReqTools library, which uses register A3-A5(?) which blitz
  54. can't cope with as it clashs with blitz registers, I think.
  55.  
  56. Good luck!
  57. Son Le
  58.  
  59. -- 
  60. Son H. Le                             email: s924723@minyos.xx.rmit.edu.au
  61.           "Nothing comes from nothing, nothing ever could..."